import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_app_05/action/states/dark_states.dart';
import 'package:provider/provider.dart';


class Padecalsix extends StatefulWidget{
  @override
  _PadecalsixInState createState() => _PadecalsixInState();

}

class _PadecalsixInState extends State<Padecalsix>{
  TextEditingController mianjiController = TextEditingController();
  bool invalidMianji = false;
  @override
  Widget build(BuildContext context) {
    return Consumer<DartState>(builder: (context, categoryState, child) {
      return columns(categoryState);
    });
  }

  Widget columns(DartState categoryState) {
    return Container(
      padding: EdgeInsets.all(15),
      decoration: new BoxDecoration(color:Color(0xfafafa)),
      child: Column(
        children: [
          Container(
            decoration: new BoxDecoration(
                borderRadius: new BorderRadius.circular((10.0))),
            alignment: Alignment.center,
            height: 330,
            child: Stack(
              children: [
                Positioned(
                  child:Text(
                    '供暖面积',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 20,
                ),
                Positioned(
                  child:Text(
                    'm²',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 27,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(

                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 10,
                ),
                Positioned(
                  child:Text(
                    '热指标',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 60,
                ),
                Positioned(
                  child:Text(
                    'W/m²',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 67,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(

                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 50,
                ),
                Positioned(
                  child:Text(
                    '一网供水温度',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 100,
                ),
                Positioned(
                  child:Text(
                    '℃',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 104,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(

                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 90,
                ),
                Positioned(
                  child:Text(
                    '一网回水温度',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 140,
                ),
                Positioned(
                  child:Text(
                    '℃',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 144,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(
                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 130,
                ),
                Positioned(
                  child:Text(
                    '二网供水温度',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 180,
                ),
                Positioned(
                  child:Text(
                    '℃',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 186,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(
                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 170,
                ),
                Positioned(
                  child:Text(
                    '二网回水温度',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 220,
                ),
                Positioned(
                  child:Text(
                    '℃',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 224,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(
                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 210,
                ),
                Positioned(
                  child:Text(
                    '交换系数',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black, // 文字颜色
                    ),
                  ),
                  left: 20,
                  top: 260,
                ),
                Positioned(
                  child:Text(
                    'W/m²',
                    style:TextStyle(
                      fontSize:13.0, // 文字大小
                      color:Colors.black26, // 文字颜色
                    ),
                  ),
                  right: 20,
                  top: 267,
                ),
                Positioned(
                  child: Container(
                    width: 427,
                    height: 35,
                    // padding: EdgeInsets.fromLTRB(50, 10, 20, 0 ),
                    child: TextField(
                      decoration: InputDecoration(
                        // border: InputBorder.none,
                        contentPadding: EdgeInsets.only(left: 250,bottom: 0),
                        enabledBorder:  UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                        focusedBorder: UnderlineInputBorder(
                          borderSide: BorderSide(color: Colors.black12),
                        ),
                      ),
                      inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
                    ),
                  ),
                  right: 20,
                  top: 250,
                ),
              ],
            ),
          ),


        ],
      ),
    );
  }
}